import { createRouter, createWebHistory } from 'vue-router'
import Dashboard from '@/views/Dashboard.vue'
import MarketSentimentView from '@/views/MarketSentimentView.vue'

const routes = [
  {
    path: '/',
    name: 'Dashboard',
    component: Dashboard,
    meta: { title: '仪表盘' }
  },
  {
    path: '/stock-selector',
    name: 'StockSelector',
    component: () => import('@/views/StockSelector.vue'),
    meta: { title: '选股器' }
  },
  {
    path: '/prediction-analysis',
    name: 'PredictionAnalysis',
    component: () => import('@/views/PredictionAnalysis.vue'),
    meta: { title: '预测分析' }
  },
  {
    path: '/training',
    name: 'Training',
    component: () => import('@/views/Training.vue'),
    meta: { title: '模型训练' }
  },
  {
    path: '/minute-trading',
    name: 'MinuteTrading',
    component: () => import('@/views/MinuteTrading.vue'),
    meta: { title: '分时交易' }
  },
  {
    path: '/settings',
    name: 'Settings',
    component: () => import('@/views/Settings.vue'),
    meta: { title: '系统设置' }
  },
  {
    path: '/market-sentiment',
    name: 'MarketSentiment',
    component: MarketSentimentView,
    meta: { title: '市场情绪' }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router